/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package es.unavarra.mti.iws.engine;

import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.datatypes.*;

/**
 *
 * @author Marcelo
 */
public class Vocabulary {

    protected static final String uri ="http://www.semanticweb.org/ontologies/2010/10/RedDeNodos.owl#";
    protected static final String uriRDFDatatype ="http://www.w3.org/2001/XMLSchema#";

    /** returns the URI for this schema
     * @return the URI for this schema
     */
    public static String getURI() {
          return uri;
    }

    private static Model m = ModelFactory.createDefaultModel();

    public static final Resource NODO = m.createResource(uri + "Node" );
    public static final Resource IMOTE2 = m.createResource(uri + "Imote2" );
    public static final Resource IRIS = m.createResource(uri + "Iris" );

    /** Imote2 Node */
    public static final Property hasSdramMemory = m.createProperty(uri, "hasSdramMemory" );
    public static final Property hasFlashMemory = m.createProperty(uri, "hasFlashMemory" );
    public static final Property hasSramMemory = m.createProperty(uri, "hasSramMemory" );
    public static final Property hasTasaDatosTi = m.createProperty(uri, "hasTasaDatosTi" );
    public static final Property hasSensibilidadTi = m.createProperty(uri, "hasSensibilidadTi" );

    /** Iris Node */
    public static final Property hasRam = m.createProperty(uri, "hasRam" );
    public static final Property hasProgramFlashMemory = m.createProperty(uri, "hasProgramFlashMemory" );
    public static final Property hasSerialFlash = m.createProperty(uri, "hasSerialFlash" );
    public static final Property hasEeprom = m.createProperty(uri, "hasEeprom" );
    public static final Property hasTasaDatos = m.createProperty(uri, "hasTasaDatos" );
    public static final Property hasSensibilidad = m.createProperty(uri, "hasSensibilidad" );

    public static final Property isVecinoOf = m.createProperty(uri, "isVecinoOf" );
    public static final Property hasTemperatura = m.createProperty(uri, "hasTemperatura" );
    public static final Property hasHumedad = m.createProperty(uri, "hasHumedad" );
    public static final Property hasInclinacion = m.createProperty(uri, "hasInclinacion" );

    /** RDFDataTypes */
    public static RDFDatatype getRDFDatatype(String type) {
          return new BaseDatatype(uriRDFDatatype + type);
    }

}
